package io.renren.modules.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.admin.dao.CouresResouseDao;
import io.renren.modules.admin.entity.CouresResouseEntity;
import io.renren.modules.admin.service.CouresResouseService;
import org.springframework.stereotype.Service;

import java.util.Map;




@Service("couresResouseService")
public class CouresResouseServiceImpl extends ServiceImpl<CouresResouseDao, CouresResouseEntity> implements CouresResouseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CouresResouseEntity> page = this.page(
                new Query<CouresResouseEntity>().getPage(params),
                new QueryWrapper<CouresResouseEntity>()
        );

        return new PageUtils(page);
    }

}